solve for x by drawing an appropriate straight line